package chapter4_10;

import com.sun.xml.internal.ws.api.client.WSPortInfo;

/**
 * @author dmc
 */
public class OperationTest2 {
    public static void main(String[] args) {
//        int age1 =20;
//        int age2 =30;
//        System.out.println((age1>1) && (age2<2)); //与
//        System.out.println((age1>1) || (age2<2)); // 或
//        System.out.println(!(age1>1)); // 非

//        int age = 5;
//
//        String content = age>5 ? "成年人" : "未成年人";
//        System.out.println(content);
        int a = 2+4*4-1;
        System.out.println(a);
        int b = (3+4) % 2;
        System.out.println(b);
        boolean flag = a>0 && b<0;

        System.out.println(flag);

    }
}
